package com.qfedu.edu.stockservice.mapper;

import com.qfedu.edu.po.StockStorageHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaobobo
 * @since 2024-11-06
 */
@Repository
public interface StockStorageHistoryMapper extends BaseMapper<StockStorageHistory> {

    /**
     * 通过库存id计算真实的库存信息
     * @param storageId
     * @return
     */
    long countStock(String storageId);
}
